package com.kma.summer2012.client.services.CrumbsCatalogOfTools;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.kma.summer2012.client.ExceptionHandling.CrumbsRPCServiceException;
import com.kma.summer2012.shared.model.UICrumbsToolItem;

import java.util.List;

public interface CrumbsCatalogOfToolsServiceAsync {
    void getAllTools(AsyncCallback<List<UICrumbsToolItem>> async);

    void saveTool(UICrumbsToolItem uiTool, AsyncCallback<Void> async);

    void getByNameTool(String name, AsyncCallback<UICrumbsToolItem> async);

    void deleteAllTool(List<UICrumbsToolItem> selectedTools, AsyncCallback<Void> async);
}
